package com.song.user;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.context.annotation.ComponentScan;
import tk.mybatis.spring.annotation.MapperScan;

@SpringBootApplication(exclude = MongoAutoConfiguration.class)
// 扫描 mybatis 通用 mapper 所在的包
@MapperScan(basePackages = "com.song.user.mapper")
// 扫描所有包以及相关组件包
@ComponentScan(basePackages={"com.song","org.n3r.idworker"})
//@EnableEurekaClient
@EnableCircuitBreaker
public class Application {
    public static void main(String[] args) {
        System.setProperty("es.set.netty.runtime.available.processors","false");
        SpringApplication.run(Application.class, args);
    }
}
